package com.gump.mall.modules.ums.service.impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import com.gump.mall.modules.ums.mapper.UmsMenuMapper;
import com.gump.mall.modules.ums.model.UmsMenu;
import com.gump.mall.modules.ums.service.UmsMenuService;

/**
 * @auther zzc
 * @date 2020/9/10 16:20
 * 概要：
 */

@Service
public class UmsMenuServiceImpl implements UmsMenuService {

    @Resource
    private UmsMenuMapper umsMenuMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return umsMenuMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(UmsMenu record) {
        return umsMenuMapper.insert(record);
    }

    @Override
    public int insertSelective(UmsMenu record) {
        return umsMenuMapper.insertSelective(record);
    }

    @Override
    public UmsMenu selectByPrimaryKey(Long id) {
        return umsMenuMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(UmsMenu record) {
        return umsMenuMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UmsMenu record) {
        return umsMenuMapper.updateByPrimaryKey(record);
    }

    @Override
    public boolean create(UmsMenu umsMenu) {
        return false;
    }

}
